function Ball(radius, color){
	this.radius = radius || 10;
	
	this.color = color || '#ff0000';
	this.x = 0;
	this.y = 0;
	this.xpos = 0;
	this.ypos = 0;
	this.zpos = 0;
	this.rotation = 1;
	this.scale = 1;
}

Ball.prototype.draw = function(ctx){
	ctx.save();
	ctx.translate(this.x, this.y);
	ctx.scale(this.scaleX, this.scaleY);
	ctx.beginPath();
	var gradient = ctx.createRadialGradient(0, 0, 0, 0, 0, this.radius );
	gradient.addColorStop(0,"rgba(255,255,255,1)");
    gradient.addColorStop(0.2,"rgba(0,255,255,1)");
    gradient.addColorStop(0.3,"rgba(0,0,100,1)");
    gradient.addColorStop(1,"rgba(0,0,0,0.1)");
	ctx.fillStyle = gradient;
	
	ctx.arc(0, 0, this.radius, 0, Math.PI * 2, false);
	ctx.closePath();
	ctx.fill();
	ctx.restore();
}
